package com.ht.shop.service.impl;

import com.ht.shop.dao.OrderListDao;

import com.ht.shop.pojo.TbOrder;
import com.ht.shop.service.OrderListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OrderListServiceImpl implements OrderListService {
    private OrderListDao orderListDao;
    @Autowired
    public void setOrderListDao(OrderListDao orderListDao) {
        this.orderListDao = orderListDao;
    }

    @Override
    public List<TbOrder> findAllListById(Long uid) throws Exception {
        return orderListDao.findAllListById(uid);
    }

    @Override
    public void deleteById(String id) {
        orderListDao.deleteById(id);
    }

    @Override
    public List<TbOrder> findAllListById() throws Exception {
        return orderListDao.findAllListById();
    }
}
